package com.tencreat.service.account;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tencreat.common.core.domain.model.ReqIdParam;
import com.tencreat.common.core.domain.model.ReqIdsParam;
import com.tencreat.domain.account.CommonWithdrawConfig;

import java.util.List;

/**
 * 提现设置Service接口
 *
 * @author tencreat
 * @date 2021-09-11
 */
public interface ICommonWithdrawConfigService extends IService<CommonWithdrawConfig> {
    /**
     * 查询提现设置
     *
     * @param id 提现设置ID
     * @return 提现设置
     */
    public CommonWithdrawConfig selectCommonWithdrawConfigById(ReqIdParam id);

    /**
     * 查询提现设置列表
     *
     * @param commonWithdrawConfig 提现设置
     * @return 提现设置集合
     */
    public List<CommonWithdrawConfig> selectCommonWithdrawConfigList(CommonWithdrawConfig commonWithdrawConfig);

    /**
     * 新增提现设置
     *
     * @param commonWithdrawConfig 提现设置
     * @return 结果
     */
    public int insertCommonWithdrawConfig(CommonWithdrawConfig commonWithdrawConfig);

    /**
     * 修改提现设置
     *
     * @param commonWithdrawConfig 提现设置
     * @return 结果
     */
    public int updateCommonWithdrawConfig(CommonWithdrawConfig commonWithdrawConfig);

    /**
     * 批量删除提现设置
     *
     * @param ids 需要删除的提现设置ID
     * @return 结果
     */
    public int deleteCommonWithdrawConfigByIds(ReqIdsParam ids);

    /**
     * 删除提现设置信息
     *
     * @param id 提现设置ID
     * @return 结果
     */
    public int deleteCommonWithdrawConfigById(ReqIdParam id);
}
